#pragma once
#include "Common.h"
#include "ThreadCache.h"
class ConcurrentAlloc
{
public:
    static void* ConAlloc(size_t size)
    {
        pTLSThreadCache = new ThreadCache;
        return pTLSThreadCache->Allocate(size);
    }
    static void ConFree(void* ptr,size_t size)
    {
        assert(pTLSThreadCache);
        pTLSThreadCache->Deallocate(ptr,size);
    }
};